package cn.edu.dzkd.software.mapper;

import cn.edu.dzkd.software.pojo.Role;
import cn.edu.dzkd.software.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    List<User> selectUsers(@Param("index") int index,
                           @Param("username") String username,
                           @Param("departmentName") String departmentName,
                           @Param("roleName") String roleName);

    List<User> selectUserInformation(@Param("username") String username);

    int selectUserCounts();

    void deleteById(String id);

    void insertUserJSON(@Param("user") User user);

    void update(@Param("user") User user);

    void updateInformation(User user);

    User login(String username);
}
